package com.ruoyi.hov.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.DynamicAnnotation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * hov细表
 * </p>
 *
 * @author XiaShiLong
 * @since 2021-04-01
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("dl_hov_dtl")
@ApiModel(value = "HovDtl对象", description = "hov细表")
public class HovDtl implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @DynamicAnnotation("主键")
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父级id
     */
    @DynamicAnnotation("父级id")
    @ApiModelProperty(value = "父级id")
    private Long hovId;

    /**
     * 表名
     */
    @DynamicAnnotation("表名")
    @ApiModelProperty(value = "表名")
    private String tableName;

    /**
     * 列名
     */
    @DynamicAnnotation("列名")
    @ApiModelProperty(value = "列名")
    private String columnName;

    /**
     * 列中文名
     */
    @DynamicAnnotation("列中文名")
    @ApiModelProperty(value = "列中文名")
    private String columnNameCh;

    /**
     * 类属性名
     */
    @DynamicAnnotation("类属性名")
    @ApiModelProperty(value = "类属性名")
    private String attributeName;

    /**
     * 使用场景(0:展示,1:查询,2:目标列显示,3:默认条件)
     */
    @DynamicAnnotation("使用场景(0:展示,1:查询,2:目标列显示,3:默认条件)")
    @ApiModelProperty(value = "使用场景(0:展示,1:查询,2:目标列显示,3:默认条件)")
    private Integer useScenario;

    /**
     * 查询类型
     */
    @DynamicAnnotation("查询类型")
    @ApiModelProperty(value = "查询类型")
    private Integer dictQueryType;

    /**
     * 默认条件值1
     */
    @DynamicAnnotation("默认条件值1")
    @ApiModelProperty(value = "默认条件值1")
    private String value1;

    /**
     * 默认条件值2
     */
    @DynamicAnnotation("默认条件值2")
    @ApiModelProperty(value = "默认条件值2")
    private String value2;
}
